package com.slwu.factory.method;

public class GIFReaderFactory extends ImageReaderFactory {
    @Override
    public ImageReader getImageReader() {
        return new GIFReader();
    }

    @Override
    public ImageReader getImageReader(String format) {
        GIFReader reader = new GIFReader();
        reader.setFormat(format);
        return reader;
    }

    @Override
    public ImageReader getImageReader(String format, int width, int height) {
        GIFReader reader = new GIFReader();
        reader.setFormat(format);
        reader.setHeight(height);
        reader.setWidth(width);
        return reader;
    }
}
